package com.test.client.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.test.client.service.TestService;
import com.text.api.entity.Process;
import com.text.api.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/food")
public class DeliciousFoodController {
    @Autowired
    private TestService testService;

    @RequestMapping("/getDeliciousFood")
    public Process getDeliciousFood(){
        return testService.getFoodProcess();
    }

    @RequestMapping("/getStudent")
    public Student getStudent(){
        return testService.getStudent();
    }
}
